package com.ld.poetry.aigc.codegeex.gclu.errorcorrection;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileCopy {
    public static void main(String[] args) {
        File inputFile = new File("input.txt");
        File outputFile = new File("output.txt");

        try (
                FileInputStream fis = new FileInputStream(inputFile);
                FileOutputStream fos = new FileOutputStream(outputFile);
        ) {
            while (fis.read() != -1) {
                fos.write(fis.read());
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

